#!/bin/bash

buildRoot=/build
installDstRoot=/usr/local

srcRoot=$buildRoot/src
buildTmpRoot=$buildRoot/tmp
pkgRoot=$buildRoot/pkg
scriptRoot=$buildRoot/script

$scriptRoot/pre_build.sh

cd $installDstRoot
tar zxvf $pkgRoot/samba-4.4.16.tar.gz
ln -s samba-4.4.16 samba
cp $pkgRoot/smb.conf samba/etc/smb.conf

echo -e '\nPATH=$PATH:/usr/local/samba/bin' >> $HOME/.bashrc
